package org.mspring.mlog.api.spider.dao.impl;

import org.mspring.mlog.api.spider.dao.SpiderPostDao;
import org.mspring.mlog.api.spider.entity.SpiderPost;
import org.mspring.platform.dao.hibernate.GenericDao;
import org.springframework.stereotype.Repository;

/**
 * @author Gao Youbo
 * @since 2013-5-3
 */
@Repository
public class SpiderPostDaoImpl extends GenericDao<SpiderPost, Long> implements SpiderPostDao {

    @Override
    public void changePosted(long id, boolean posted) {
        super.executeUpdate("update SpiderPost sp set sp.posted = ? where sp.id = ?", posted, id);
    }
}
